package com.dy.project.domain;

import java.util.List;

/**
 * dsv限制模板類
 */
public class CommodityDsvLimitAddTemplate {
    /** 囚犯編號列表 */
    private List<String> dtStaffNos;

    private List<InnerDsvLimitItem> limitItems;

    public List<String> getDtStaffNos() {
        return dtStaffNos;
    }

    public void setDtStaffNos(List<String> dtStaffNos) {
        this.dtStaffNos = dtStaffNos;
    }

    public List<InnerDsvLimitItem> getLimitItems() {
        return limitItems;
    }

    public void setLimitItems(List<InnerDsvLimitItem> limitItems) {
        this.limitItems = limitItems;
    }

    @Override
    public String toString() {
        return "CommodityDsvLimitAddTemplate{" +
                "dtStaffNos=" + dtStaffNos +
                ", limitItems=" + limitItems +
                '}';
    }

    /**
     * 靜態内部DSV限制子項輔助類
     */
    public static class InnerDsvLimitItem{
        /** 限制類型（0：大类，1：小类，2：商品） */
        private Integer type;
        /** 限制id（根据限制类型来判断该id为类型还是商品） */
        private Integer id;
        /** 限制數量 */
        private Integer limitCount;

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getLimitCount() {
            return limitCount;
        }

        public void setLimitCount(Integer limitCount) {
            this.limitCount = limitCount;
        }
    }
}
